package com.pozu.new_retail.dao.mapper;

import java.util.HashMap;
import java.util.List;

import com.pozu.new_retail.dao.model.Message;
import com.pozu.new_retail.dao.vo.CommentMessageVo;
import com.pozu.new_retail.dao.vo.OrderMessageVo;
import com.pozu.new_retail.dao.vo.UgcMessageVo;
import com.pozu.new_retail.dao.vo.UpvoteMessageVo;

public interface MessageMapper {
	
	public int queryCountByMap(HashMap<String, Object> hashMap);
	
	public int insertMessage(Message message);
	
	public int updateMessage(HashMap<String, Object> hashMap);
	
	public List<UpvoteMessageVo> queryUpvoteMessageByMap(HashMap<String, Object> hashMap);
	
	public List<CommentMessageVo> queryCommentMessageByMap(HashMap<String, Object> hashMap);
	
	public List<UgcMessageVo> queryUgcMessageByMap(HashMap<String, Object> hashMap);
	
	public List<OrderMessageVo> queryOrderMessageByMap(HashMap<String, Object> hashMap);
	
	public UpvoteMessageVo queryLastUpvoteMessage(HashMap<String, Object> hashMa);
	
	public CommentMessageVo queryLastCommentMessage(HashMap<String, Object> hashMa);
	
	public UgcMessageVo queryLastUgcMessage(HashMap<String, Object> hashMa);
	
	public OrderMessageVo queryLastOrderMessage(HashMap<String, Object> hashMa);

}
